package com.ply.flashsalessystem.service;

import com.ply.flashsalessystem.entity.pojo.OrderTime;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;

import java.time.LocalTime;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XiaoPan
 * @since 2022-04-07
 */
public interface OrderTimeService extends IService<OrderTime> {

    @Cacheable(value = "OrderTime", key = "#orderTimeId")
    OrderTime query(Integer orderTimeId);

    //
    @CachePut(value = "OrderTime", key = "#orderTimeId")
    OrderTime updateTime(LocalTime time, Integer orderTimeId);
}
